home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / x / volume6 / xfig2 / patch6.1 < prev    next >
Encoding:
Internet Message Format  |  1993-04-28  |  63.3 KB

  1. From: envbvs@epb2.lbl.gov (Brian V. Smith)
  2. Newsgroups: comp.sources.x
  3. Subject: v06i081: xfig 2.0, Patch6, Part01/06
  4. Message-ID: <134787@sun.Eng.Sun.COM>
  5. Date: 24 Apr 90 22:25:50 GMT
  6. Approved: argv@sun.com
  7.  
  8. Submitted-by: envbvs@epb2.lbl.gov (Brian V. Smith)
  9. Posting-number: Volume 6, Issue 81
  10. Archive-name: xfig2/patch6.1
  11. Patch-To: xfig2: Volume 6, Issues: 9-24, 34-36, 50-56
  12.  
  13. Xfig Version 2.0 
  14.  
  15. Patchlevel 6 (3/24/90)
  16. Changes from patchlevel 5:
  17.  
  18. o *** New popup menu to change characteristics of existing objects, 
  19.    e.g. line thickness, style, text options, area fill etc.
  20.    Not ALL things may be modified yet (e.g. arrows on lines).
  21.    Jon Tombs and Frank Schmuck provided this much-needed feature
  22. o Because the popup menu uses the new Simple Menu widget from R4, xfig
  23.    will no longer compile under R3
  24. o Fixed WMHints to "or" in InputHint to retain any existing Hints
  25.   Thanks to David Elliott
  26. o Doesn't let one delete to fewer than 3 points in interpolated spline
  27. o Removed unused variables
  28. o Changed rounded-corner box objects to have radius component instead 
  29.    of using the pen component (new protocol version 2.0 and 2.0-TFX)
  30. o Added back support to read protocol version 1.3 files
  31. o Fixed bug where the line style wasn't passed in drawing bounding 
  32.    rectangle when moving/copying objects
  33. o Fixed cursor for popup command menu
  34. o Fixed bounding box bug for postscript output from f2ps
  35. o Fixed bug that erroneously allowed filled polylines (only polygons, boxes,
  36.    round-corner boxes, ellipses, circles, closed splines and arcs may be filled)
  37. o Fixed name of AvantGarde-Book font (was AvantGarde)
  38. o Added two X fonts that are similar to AvantGarde... and Palatino...
  39.    From Dave Davey 
  40. o Fixed bug that caused coredump when referencing a zero-radius ellipse
  41. o Added back the LaTex buttons even for non-TFX mode
  42. o More SYSV #ifdefs from Scott E. Garfinkle (dacseg@uts.amdahl.com)
  43. o New rule in Imakefile to install troff_ft_codes file
  44. o put_fmsg() uses double arguments instead of float to prevent some 
  45.     systems from choking on float-double-float conversions of invalid data.
  46. o 8-bit characters allowed for text objects
  47.     From Tor Lillqvist <tml@hemuli.tik.vtt.fi>
  48.  
  49. NOTE: The files changetext.c, changethick.c and changestyle.c are no
  50.       longer used by xfig.  They have been superseded by change.c.
  51.  
  52. As always, direct any questions, bugs, fixes :-) to me at:
  53.  
  54. Brian V. Smith
  55. envbvs@epb2.lbl.gov
  56. or
  57. bsvmith@lbl.gov
  58.  
  59. ------------------------ Part 1 of 6 follows -------------------------
  60. #! /bin/sh
  61. # This is a shell archive.  Remove anything before this line, then unpack
  62. # it by saving it into a file and typing "sh file".  To overwrite existing
  63. # files, type "sh file -c".  You can also feed this as standard input via
  64. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  65. # will see the following message at the end:
  66. #        "End of archive 1 (of 6)."
  67. # Contents:  README.diff arc.c.diff arcbox.c.diff autoarrow.c.diff
  68. #   bound.c.diff box.c.diff canvas.c.diff deletept.c.diff dir.c.diff
  69. #   drag.c.diff f2p.c.diff fig.h.diff file.c.diff flip.c.diff
  70. #   font.c.diff func.h.diff graphics.c.diff grid.c.diff
  71. #   intspline.c.diff object.h.diff paintop.h.diff panel.h.diff
  72. #   panel2.h.diff patchlevel.h.diff print.c.diff psbits3.c.diff
  73. #   redisplay.c.diff resources.h.diff rotate.c.diff save.c.diff
  74. #   search.c.diff spline.c.diff troff_ft_codes.diff turn.c.diff
  75. #   undo.c.diff version.h.diff xtra.h.diff
  76. # Wrapped by envbvs@epb2.lbl.gov on Tue Apr 24 11:56:42 1990
  77. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  78. if test -f 'README.diff' -a "${1}" != "-c" ; then 
  79.   echo shar: Will not clobber existing file \"'README.diff'\"
  80. else
  81. echo shar: Extracting \"'README.diff'\" \(2711 characters\)
  82. sed "s/^X//" >'README.diff' <<'END_OF_FILE'
  83. X*** README.old    Tue Apr 24 11:48:04 1990
  84. X--- README    Tue Apr 24 11:30:43 1990
  85. X***************
  86. X*** 3,12 ****
  87. X  NOTE: Version 2.0 of xfig no longer supports SunView!  If you wish to
  88. X        retain compatibility with SunView, use version 1.4.3.
  89. X  
  90. X  Added Features:
  91. X  ===============
  92. X  
  93. X! o Separate version number for program vs file format (protocol now 1.4X)
  94. X  
  95. X  o Area fill for circles, boxes, etc. with 20 different gray shades
  96. X    for Postscript output
  97. X--- 3,17 ----
  98. X  NOTE: Version 2.0 of xfig no longer supports SunView!  If you wish to
  99. X        retain compatibility with SunView, use version 1.4.3.
  100. X  
  101. X+       Also, xfig must be compiled under X11R4 because of the new 
  102. X+       simple-menu used in the popup menu to modify objects.
  103. X+ 
  104. X+ Note: See the CHANGES file for up-to-date information
  105. X+ 
  106. X  Added Features:
  107. X  ===============
  108. X  
  109. X! o Separate version number for program vs file format (protocol now 2.0)
  110. X  
  111. X  o Area fill for circles, boxes, etc. with 20 different gray shades
  112. X    for Postscript output
  113. X***************
  114. X*** 15,35 ****
  115. X    can be used in figures at any point size.  If there is a corresponding
  116. X    font in X, then the text is shown in that font on the screen.
  117. X  
  118. X! o text can be virtually any point size
  119. X  
  120. X  o left, center and right justification of text
  121. X  
  122. X  o rounded-corner boxes with any radius of the corners
  123. X-   "pen" component of the object is used for the radius (in pixels)
  124. X  
  125. X! o different line thicknesses
  126. X  
  127. X! o lower button panel for quick access to "save", "chdir", etc. functions
  128. X  
  129. X! o button to change the line thickness of an existing object
  130. X  
  131. X- o button to change the line type of an existing object
  132. X- 
  133. X  o portrait or landscape print mode
  134. X  
  135. X  NOTE: I will support these features as best I can, but I cannot promise
  136. X--- 20,37 ----
  137. X    can be used in figures at any point size.  If there is a corresponding
  138. X    font in X, then the text is shown in that font on the screen.
  139. X  
  140. X! o text can be virtually any point size (on output)
  141. X  
  142. X  o left, center and right justification of text
  143. X  
  144. X  o rounded-corner boxes with any radius of the corners
  145. X  
  146. X! o line thicknesses supported
  147. X  
  148. X! o lower button panel for quick access to "save", "undo", etc. functions
  149. X  
  150. X! o popup menu to modify existing objects
  151. X  
  152. X  o portrait or landscape print mode
  153. X  
  154. X  NOTE: I will support these features as best I can, but I cannot promise
  155. X***************
  156. X*** 36,47 ****
  157. X        anything, as my normal workload is pretty full.
  158. X        Brian Smith
  159. X        (bvsmith@lbl.gov)
  160. X- 
  161. X- 
  162. X- Deleted Features:
  163. X- =================
  164. X- 
  165. X- o f2p (fig to pic) support not updated for above features
  166. X  
  167. X  _________________________________________________________________________
  168. X  FIG 1.4 Release 2
  169. X--- 38,43 ----
  170. END_OF_FILE
  171. if test 2711 -ne `wc -c <'README.diff'`; then
  172.     echo shar: \"'README.diff'\" unpacked with wrong size!
  173. fi
  174. # end of 'README.diff'
  175. fi
  176. if test -f 'arc.c.diff' -a "${1}" != "-c" ; then 
  177.   echo shar: Will not clobber existing file \"'arc.c.diff'\"
  178. else
  179. echo shar: Extracting \"'arc.c.diff'\" \(1586 characters\)
  180. sed "s/^X//" >'arc.c.diff' <<'END_OF_FILE'
  181. X*** arc.c.old    Tue Apr 24 11:48:05 1990
  182. X--- arc.c    Mon Apr 16 11:24:04 1990
  183. X***************
  184. X*** 110,116 ****
  185. X  
  186. X      x = point[0].x;  y = point[0].y;
  187. X      for (i = 1; i < num_point; i++) {
  188. X!         pw_vector(canvas_pixwin, x, y, point[i].x, point[i].y, INV_PAINT,
  189. X              1, SOLID_LINE, 0.0);
  190. X          x = point[i].x;  y = point[i].y;
  191. X          }
  192. X--- 110,116 ----
  193. X  
  194. X      x = point[0].x;  y = point[0].y;
  195. X      for (i = 1; i < num_point; i++) {
  196. X!         pw_vector(canvas_win, x, y, point[i].x, point[i].y, INV_PAINT,
  197. X              1, SOLID_LINE, 0.0);
  198. X          x = point[i].x;  y = point[i].y;
  199. X          }
  200. X***************
  201. X*** 133,140 ****
  202. X      arc->style = line_style;
  203. X      arc->thickness = line_thickness;
  204. X      arc->style_val = cur_styleval;
  205. X!     arc->pen = NULL;
  206. X!     /* added 3/1/89 B.V.Smith */
  207. X      arc->area_fill = fill_mode? cur_areafill : 0;
  208. X      arc->color = cur_color;
  209. X      arc->depth = 0;
  210. X--- 133,139 ----
  211. X      arc->style = line_style;
  212. X      arc->thickness = line_thickness;
  213. X      arc->style_val = cur_styleval;
  214. X!     arc->pen = 0;
  215. X      arc->area_fill = fill_mode? cur_areafill : 0;
  216. X      arc->color = cur_color;
  217. X      arc->depth = 0;
  218. X***************
  219. X*** 176,184 ****
  220. X  F_arc    *a;
  221. X  int    op;
  222. X  {
  223. X!     extern int    foreground_color, background_color;
  224. X! 
  225. X!     curve(canvas_pixwin, round(a->point[0].x - a->center.x),
  226. X          round(a->center.y - a->point[0].y),
  227. X          round(a->point[2].x - a->center.x),
  228. X          round(a->center.y - a->point[2].y),
  229. X--- 175,181 ----
  230. X  F_arc    *a;
  231. X  int    op;
  232. X  {
  233. X!     curve(canvas_win, round(a->point[0].x - a->center.x),
  234. X          round(a->center.y - a->point[0].y),
  235. X          round(a->point[2].x - a->center.x),
  236. X          round(a->center.y - a->point[2].y),
  237. END_OF_FILE
  238. if test 1586 -ne `wc -c <'arc.c.diff'`; then
  239.     echo shar: \"'arc.c.diff'\" unpacked with wrong size!
  240. fi
  241. # end of 'arc.c.diff'
  242. fi
  243. if test -f 'arcbox.c.diff' -a "${1}" != "-c" ; then 
  244.   echo shar: Will not clobber existing file \"'arcbox.c.diff'\"
  245. else
  246. echo shar: Extracting \"'arcbox.c.diff'\" \(959 characters\)
  247. sed "s/^X//" >'arcbox.c.diff' <<'END_OF_FILE'
  248. X*** arcbox.c.old    Tue Apr 24 11:48:06 1990
  249. X--- arcbox.c    Wed Apr 11 11:20:43 1990
  250. X***************
  251. X*** 66,72 ****
  252. X  {
  253. X      F_line    *box;
  254. X      F_point    *point;
  255. X-     int tmp;
  256. X  
  257. X      draw_rectbox(fix_x, fix_y, cur_x, cur_y, INV_PAINT);
  258. X  
  259. X--- 66,71 ----
  260. X***************
  261. X*** 85,94 ****
  262. X      box->style = line_style;
  263. X      box->thickness = line_thickness;
  264. X      box->color = cur_color;
  265. X!     box->depth = NULL;
  266. X!     box->pen = cur_radius;        /* use the pen slot for the radius */
  267. X      box->area_fill = fill_mode? cur_areafill : 0;
  268. X      box->style_val = cur_styleval;
  269. X      box->for_arrow = NULL;
  270. X      box->back_arrow = NULL;
  271. X      box->points = point;
  272. X--- 84,94 ----
  273. X      box->style = line_style;
  274. X      box->thickness = line_thickness;
  275. X      box->color = cur_color;
  276. X!     box->depth = 0;
  277. X!     box->pen = 0;
  278. X      box->area_fill = fill_mode? cur_areafill : 0;
  279. X      box->style_val = cur_styleval;
  280. X+     box->radius = cur_radius;    /* corner radius */
  281. X      box->for_arrow = NULL;
  282. X      box->back_arrow = NULL;
  283. X      box->points = point;
  284. END_OF_FILE
  285. if test 959 -ne `wc -c <'arcbox.c.diff'`; then
  286.     echo shar: \"'arcbox.c.diff'\" unpacked with wrong size!
  287. fi
  288. # end of 'arcbox.c.diff'
  289. fi
  290. if test -f 'autoarrow.c.diff' -a "${1}" != "-c" ; then 
  291.   echo shar: Will not clobber existing file \"'autoarrow.c.diff'\"
  292. else
  293. echo shar: Extracting \"'autoarrow.c.diff'\" \(1596 characters\)
  294. sed "s/^X//" >'autoarrow.c.diff' <<'END_OF_FILE'
  295. X*** autoarrow.c.old    Tue Apr 24 11:48:07 1990
  296. X--- autoarrow.c    Mon Apr 16 11:24:18 1990
  297. X***************
  298. X*** 262,268 ****
  299. X          if (normal_spline(spline)) {
  300. X          draw_arrow(p->x, p->y, selected_point->x,
  301. X              selected_point->y, spline->back_arrow, ERASE);
  302. X!         pw_vector(canvas_pixwin, selected_point->x, selected_point->y,
  303. X              round((p->x+selected_point->x)/2.0),
  304. X              round((p->y+selected_point->y)/2.0), PAINT, 
  305. X              spline->thickness, spline->style, spline->style_val);
  306. X--- 262,268 ----
  307. X          if (normal_spline(spline)) {
  308. X          draw_arrow(p->x, p->y, selected_point->x,
  309. X              selected_point->y, spline->back_arrow, ERASE);
  310. X!         pw_vector(canvas_win, selected_point->x, selected_point->y,
  311. X              round((p->x+selected_point->x)/2.0),
  312. X              round((p->y+selected_point->y)/2.0), PAINT, 
  313. X              spline->thickness, spline->style, spline->style_val);
  314. X***************
  315. X*** 290,296 ****
  316. X          draw_arrow(left_point->x, left_point->y,
  317. X              selected_point->x, selected_point->y,
  318. X              spline->for_arrow, ERASE);
  319. X!         pw_vector(canvas_pixwin, selected_point->x, selected_point->y,
  320. X              round((selected_point->x+left_point->x)/2.0),
  321. X              round((selected_point->y+left_point->y)/2.0), 
  322. X              PAINT, spline->thickness, spline->style, spline->style_val);
  323. X--- 290,296 ----
  324. X          draw_arrow(left_point->x, left_point->y,
  325. X              selected_point->x, selected_point->y,
  326. X              spline->for_arrow, ERASE);
  327. X!         pw_vector(canvas_win, selected_point->x, selected_point->y,
  328. X              round((selected_point->x+left_point->x)/2.0),
  329. X              round((selected_point->y+left_point->y)/2.0), 
  330. X              PAINT, spline->thickness, spline->style, spline->style_val);
  331. END_OF_FILE
  332. if test 1596 -ne `wc -c <'autoarrow.c.diff'`; then
  333.     echo shar: \"'autoarrow.c.diff'\" unpacked with wrong size!
  334. fi
  335. # end of 'autoarrow.c.diff'
  336. fi
  337. if test -f 'bound.c.diff' -a "${1}" != "-c" ; then 
  338.   echo shar: Will not clobber existing file \"'bound.c.diff'\"
  339. else
  340. echo shar: Extracting \"'bound.c.diff'\" \(828 characters\)
  341. sed "s/^X//" >'bound.c.diff' <<'END_OF_FILE'
  342. X*** bound.c.old    Tue Apr 24 11:48:08 1990
  343. X--- bound.c    Thu Apr  5 16:29:24 1990
  344. X***************
  345. X*** 338,361 ****
  346. X      *xmin = sx; *ymin = sy;
  347. X      *xmax = bx; *ymax = by;
  348. X      }
  349. X- 
  350. X- control_points_bound(cps, xmin, ymin, xmax, ymax)
  351. X- F_control    *cps;
  352. X- int        *xmin, *ymin, *xmax, *ymax;
  353. X- {
  354. X-     F_control    *c;
  355. X-     float        bx, by, sx, sy;
  356. X- 
  357. X-     bx = sx = cps->lx;
  358. X-     by = sy = cps->ly;
  359. X-     sx = min(sx, cps->rx); sy = min(sy, cps->ry);
  360. X-     bx = max(bx, cps->rx); by = max(by, cps->ry);
  361. X-     for (c = cps->next; c != NULL; c = c->next) {
  362. X-         sx = min(sx, c->lx); sy = min(sy, c->ly);
  363. X-         bx = max(bx, c->lx); by = max(by, c->ly);
  364. X-         sx = min(sx, c->rx); sy = min(sy, c->ry);
  365. X-         bx = max(bx, c->rx); by = max(by, c->ry);
  366. X-         }
  367. X-     *xmin = round(sx); *ymin = round(sy);
  368. X-     *xmax = round(bx); *ymax = round(by);
  369. X-     }
  370. X--- 338,340 ----
  371. END_OF_FILE
  372. if test 828 -ne `wc -c <'bound.c.diff'`; then
  373.     echo shar: \"'bound.c.diff'\" unpacked with wrong size!
  374. fi
  375. # end of 'bound.c.diff'
  376. fi
  377. if test -f 'box.c.diff' -a "${1}" != "-c" ; then 
  378.   echo shar: Will not clobber existing file \"'box.c.diff'\"
  379. else
  380. echo shar: Extracting \"'box.c.diff'\" \(1455 characters\)
  381. sed "s/^X//" >'box.c.diff' <<'END_OF_FILE'
  382. X*** box.c.old    Tue Apr 24 11:48:08 1990
  383. X--- box.c    Mon Apr 16 11:24:35 1990
  384. X***************
  385. X*** 63,72 ****
  386. X  draw_rectbox(x1, y1, x2, y2, op)
  387. X  int    x1, y1, x2, y2, op;
  388. X  {
  389. X!     pw_vector(canvas_pixwin, x1, y1, x1, y2, op, 1, SOLID_LINE);
  390. X!     pw_vector(canvas_pixwin, x1, y2, x2, y2, op, 1, SOLID_LINE);
  391. X!     pw_vector(canvas_pixwin, x2, y2, x2, y1, op, 1, SOLID_LINE);
  392. X!     pw_vector(canvas_pixwin, x2, y1, x1, y1, op, 1, SOLID_LINE);
  393. X      }
  394. X  
  395. X  elastic_box(x, y)
  396. X--- 63,72 ----
  397. X  draw_rectbox(x1, y1, x2, y2, op)
  398. X  int    x1, y1, x2, y2, op;
  399. X  {
  400. X!     pw_vector(canvas_win, x1, y1, x1, y2, op, 1, SOLID_LINE, 0.0);
  401. X!     pw_vector(canvas_win, x1, y2, x2, y2, op, 1, SOLID_LINE, 0.0);
  402. X!     pw_vector(canvas_win, x2, y2, x2, y1, op, 1, SOLID_LINE, 0.0);
  403. X!     pw_vector(canvas_win, x2, y1, x1, y1, op, 1, SOLID_LINE, 0.0);
  404. X      }
  405. X  
  406. X  elastic_box(x, y)
  407. X***************
  408. X*** 102,111 ****
  409. X      box->thickness = line_thickness;
  410. X      box->color = cur_color;
  411. X      box->depth = NULL;
  412. X!     box->pen = NULL;
  413. X!     /* added 3/1/89 B.V.Smith */
  414. X      box->area_fill = fill_mode? cur_areafill : 0;
  415. X      box->style_val = cur_styleval;
  416. X      box->for_arrow = NULL;
  417. X      box->back_arrow = NULL;
  418. X      box->points = point;
  419. X--- 102,111 ----
  420. X      box->thickness = line_thickness;
  421. X      box->color = cur_color;
  422. X      box->depth = NULL;
  423. X!     box->pen = 0;
  424. X      box->area_fill = fill_mode? cur_areafill : 0;
  425. X      box->style_val = cur_styleval;
  426. X+     box->radius = 0;
  427. X      box->for_arrow = NULL;
  428. X      box->back_arrow = NULL;
  429. X      box->points = point;
  430. END_OF_FILE
  431. if test 1455 -ne `wc -c <'box.c.diff'`; then
  432.     echo shar: \"'box.c.diff'\" unpacked with wrong size!
  433. fi
  434. # end of 'box.c.diff'
  435. fi
  436. if test -f 'canvas.c.diff' -a "${1}" != "-c" ; then 
  437.   echo shar: Will not clobber existing file \"'canvas.c.diff'\"
  438. else
  439. echo shar: Extracting \"'canvas.c.diff'\" \(1951 characters\)
  440. sed "s/^X//" >'canvas.c.diff' <<'END_OF_FILE'
  441. X*** canvas.c.old    Tue Apr 24 11:48:09 1990
  442. X--- canvas.c    Wed Apr 18 09:34:54 1990
  443. X***************
  444. X*** 19,26 ****
  445. X  extern int        action_on;     /* tracker.c */
  446. X  extern int        magnet_mode;
  447. X  
  448. X- extern int        receiving_msg;
  449. X- extern int        borderwid, stripeht, windowspacing;
  450. X  extern int        CANVAS_WIDTH, CANVAS_HEIGHT;
  451. X  extern            null_proc();
  452. X  extern            (*canvas_kbd_proc)();
  453. X--- 19,24 ----
  454. X***************
  455. X*** 76,84 ****
  456. X      Window        w;
  457. X      extern TOOL    menu;
  458. X      
  459. X!     XTranslateCoordinates(tool_d, canvas_swfd, XDefaultRootWindow(tool_d),
  460. X                    event->xbutton.x, event->xbutton.y, &x, &y, &w);
  461. X      XtMoveWidget(menu, x-10, y-10);
  462. X  }
  463. X  
  464. X  XtActionsRec canvas_actions[] =
  465. X--- 74,83 ----
  466. X      Window        w;
  467. X      extern TOOL    menu;
  468. X      
  469. X!     XTranslateCoordinates(tool_d, canvas_win, XDefaultRootWindow(tool_d),
  470. X                    event->xbutton.x, event->xbutton.y, &x, &y, &w);
  471. X      XtMoveWidget(menu, x-10, y-10);
  472. X+     set_temp_cursor(&arrow_cursor);    /* set cursor to arrow for popup menu */
  473. X  }
  474. X  
  475. X  XtActionsRec canvas_actions[] =
  476. X***************
  477. X*** 142,148 ****
  478. X  setup_canvas()
  479. X  {
  480. X      canvas_rightbut_proc = set_popupmenu;
  481. X!     canvas_pixwin = canvas_swfd = XtWindow(canvas_sw);
  482. X      init_grid();
  483. X  }
  484. X  
  485. X--- 141,147 ----
  486. X  setup_canvas()
  487. X  {
  488. X      canvas_rightbut_proc = set_popupmenu;
  489. X!     canvas_win = XtWindow(canvas_sw);
  490. X      init_grid();
  491. X  }
  492. X  
  493. X***************
  494. X*** 155,161 ****
  495. X      Cardinal    *nparams;
  496. X  {
  497. X      register int    x, y, t;
  498. X!     char        buf[1];
  499. X      XButtonPressedEvent    *be = (XButtonPressedEvent *)event;
  500. X      XKeyPressedEvent    *ke = (XKeyPressedEvent *)event;
  501. X  
  502. X--- 154,160 ----
  503. X      Cardinal    *nparams;
  504. X  {
  505. X      register int    x, y, t;
  506. X!     unsigned char    buf[1];
  507. X      XButtonPressedEvent    *be = (XButtonPressedEvent *)event;
  508. X      XKeyPressedEvent    *ke = (XKeyPressedEvent *)event;
  509. X  
  510. X***************
  511. X*** 202,206 ****
  512. X  
  513. X  clear_canvas()
  514. X  {
  515. X!     XClearArea(tool_d, canvas_pixwin, 0, 0, 0, 0, False);
  516. X  }
  517. X--- 201,205 ----
  518. X  
  519. X  clear_canvas()
  520. X  {
  521. X!     XClearArea(tool_d, canvas_win, 0, 0, 0, 0, False);
  522. X  }
  523. END_OF_FILE
  524. if test 1951 -ne `wc -c <'canvas.c.diff'`; then
  525.     echo shar: \"'canvas.c.diff'\" unpacked with wrong size!
  526. fi
  527. # end of 'canvas.c.diff'
  528. fi
  529. if test -f 'deletept.c.diff' -a "${1}" != "-c" ; then 
  530.   echo shar: Will not clobber existing file \"'deletept.c.diff'\"
  531. else
  532. echo shar: Extracting \"'deletept.c.diff'\" \(539 characters\)
  533. sed "s/^X//" >'deletept.c.diff' <<'END_OF_FILE'
  534. X*** deletept.c.old    Tue Apr 24 11:48:12 1990
  535. X--- deletept.c    Thu Apr  5 17:34:51 1990
  536. X***************
  537. X*** 99,106 ****
  538. X              return;
  539. X              }
  540. X          }
  541. X!         else if (n <= 2) { /* it must be an interpolated spline */
  542. X!         put_msg("An interpolated spline may have less than 3 points");
  543. X          return;
  544. X          }
  545. X          clean_up();
  546. X--- 99,106 ----
  547. X              return;
  548. X              }
  549. X          }
  550. X!         else if (n <= 3) { /* it must be an interpolated spline */
  551. X!         put_msg("An interpolated spline cannot have less than 3 points");
  552. X          return;
  553. X          }
  554. X          clean_up();
  555. END_OF_FILE
  556. if test 539 -ne `wc -c <'deletept.c.diff'`; then
  557.     echo shar: \"'deletept.c.diff'\" unpacked with wrong size!
  558. fi
  559. # end of 'deletept.c.diff'
  560. fi
  561. if test -f 'dir.c.diff' -a "${1}" != "-c" ; then 
  562.   echo shar: Will not clobber existing file \"'dir.c.diff'\"
  563. else
  564. echo shar: Extracting \"'dir.c.diff'\" \(441 characters\)
  565. sed "s/^X//" >'dir.c.diff' <<'END_OF_FILE'
  566. X*** dir.c.old    Tue Apr 24 11:48:12 1990
  567. X--- dir.c    Fri Apr 13 09:22:00 1990
  568. X***************
  569. X*** 45,50 ****
  570. X--- 45,56 ----
  571. X  get_directory(direct)
  572. X  char *direct;
  573. X      {
  574. X+ #ifdef SYSV
  575. X+     extern char *getcwd();
  576. X+     if (getcwd(direct,1024) == NULL)        /* get curent working dir */
  577. X+ #else
  578. X+     extern char *getwd();
  579. X+ #endif
  580. X      if (getwd(direct) == NULL)    /* get curent working dir */
  581. X          {
  582. X          put_msg("%s", direct);    /* err msg is in directory */
  583. END_OF_FILE
  584. if test 441 -ne `wc -c <'dir.c.diff'`; then
  585.     echo shar: \"'dir.c.diff'\" unpacked with wrong size!
  586. fi
  587. # end of 'dir.c.diff'
  588. fi
  589. if test -f 'drag.c.diff' -a "${1}" != "-c" ; then 
  590.   echo shar: Will not clobber existing file \"'drag.c.diff'\"
  591. else
  592. echo shar: Extracting \"'drag.c.diff'\" \(1550 characters\)
  593. sed "s/^X//" >'drag.c.diff' <<'END_OF_FILE'
  594. X*** drag.c.old    Tue Apr 24 11:48:13 1990
  595. X--- drag.c    Mon Apr 16 11:24:46 1990
  596. X***************
  597. X*** 143,151 ****
  598. X  
  599. X      dx = cur_x - fix_x;
  600. X      dy = cur_y - fix_y;
  601. X!     pw_vector(canvas_pixwin, a->point[0].x+dx, a->point[0].y+dy,
  602. X          a->point[1].x+dx, a->point[1].y+dy, op, 1, SOLID_LINE, 0.0);
  603. X!     pw_vector(canvas_pixwin, a->point[1].x+dx, a->point[1].y+dy,
  604. X          a->point[2].x+dx, a->point[2].y+dy, op, 1, SOLID_LINE, 0.0);
  605. X      }
  606. X  
  607. X--- 143,151 ----
  608. X  
  609. X      dx = cur_x - fix_x;
  610. X      dy = cur_y - fix_y;
  611. X!     pw_vector(canvas_win, a->point[0].x+dx, a->point[0].y+dy,
  612. X          a->point[1].x+dx, a->point[1].y+dy, op, 1, SOLID_LINE, 0.0);
  613. X!     pw_vector(canvas_win, a->point[1].x+dx, a->point[1].y+dy,
  614. X          a->point[2].x+dx, a->point[2].y+dy, op, 1, SOLID_LINE, 0.0);
  615. X      }
  616. X  
  617. X***************
  618. X*** 200,206 ****
  619. X      y = p->y + dy;
  620. X      for (p = p->next; p != NULL; x = xx, y = yy, p = p->next) {
  621. X          xx = p->x + dx;  yy = p->y +dy;
  622. X!         pw_vector(canvas_pixwin, x, y, xx, yy, op, 1, SOLID_LINE, 0.0);
  623. X          }
  624. X  }
  625. X  
  626. X--- 200,206 ----
  627. X      y = p->y + dy;
  628. X      for (p = p->next; p != NULL; x = xx, y = yy, p = p->next) {
  629. X          xx = p->x + dx;  yy = p->y +dy;
  630. X!         pw_vector(canvas_win, x, y, xx, yy, op, 1, SOLID_LINE, 0.0);
  631. X          }
  632. X  }
  633. X  
  634. X***************
  635. X*** 262,268 ****
  636. X  
  637. X  draw_movingtext()
  638. X  {
  639. X!     pw_text(canvas_pixwin, cur_x + x1off, cur_y + y1off, INV_PAINT,
  640. X          text->font, text->size, text->cstring);
  641. X      }
  642. X  
  643. X--- 262,268 ----
  644. X  
  645. X  draw_movingtext()
  646. X  {
  647. X!     pw_text(canvas_win, cur_x + x1off, cur_y + y1off, INV_PAINT,
  648. X          text->font, text->size, text->cstring);
  649. X      }
  650. X  
  651. END_OF_FILE
  652. if test 1550 -ne `wc -c <'drag.c.diff'`; then
  653.     echo shar: \"'drag.c.diff'\" unpacked with wrong size!
  654. fi
  655. # end of 'drag.c.diff'
  656. fi
  657. if test -f 'f2p.c.diff' -a "${1}" != "-c" ; then 
  658.   echo shar: Will not clobber existing file \"'f2p.c.diff'\"
  659. else
  660. echo shar: Extracting \"'f2p.c.diff'\" \(589 characters\)
  661. sed "s/^X//" >'f2p.c.diff' <<'END_OF_FILE'
  662. X*** f2p.c.old    Tue Apr 24 11:48:14 1990
  663. X--- f2p.c    Tue Apr  3 11:32:55 1990
  664. X***************
  665. X*** 547,553 ****
  666. X          s->back_arrow->ht/ppi, s->back_arrow->wid/ppi);
  667. X  
  668. X      for (p2 = p1->next, cp2 = cp1->next; p2 != NULL;
  669. X!         p1 = p2, cp1 = cp2, p2 = p2->next, cp2 = cp2->next)
  670. X          {
  671. X              fprintf(tfp, "line from %.3f,%.3f ", x2, y2);
  672. X          x1 = x2; 
  673. X--- 547,553 ----
  674. X          s->back_arrow->ht/ppi, s->back_arrow->wid/ppi);
  675. X  
  676. X      for (p2 = p1->next, cp2 = cp1->next; p2 != NULL;
  677. X!         cp1 = cp2, p2 = p2->next, cp2 = cp2->next)
  678. X          {
  679. X              fprintf(tfp, "line from %.3f,%.3f ", x2, y2);
  680. X          x1 = x2; 
  681. END_OF_FILE
  682. if test 589 -ne `wc -c <'f2p.c.diff'`; then
  683.     echo shar: \"'f2p.c.diff'\" unpacked with wrong size!
  684. fi
  685. # end of 'f2p.c.diff'
  686. fi
  687. if test -f 'fig.h.diff' -a "${1}" != "-c" ; then 
  688.   echo shar: Will not clobber existing file \"'fig.h.diff'\"
  689. else
  690. echo shar: Extracting \"'fig.h.diff'\" \(636 characters\)
  691. sed "s/^X//" >'fig.h.diff' <<'END_OF_FILE'
  692. X*** fig.h.old    Tue Apr 24 11:48:16 1990
  693. X--- fig.h    Tue Apr 10 11:53:31 1990
  694. X***************
  695. X*** 41,46 ****
  696. X--- 41,54 ----
  697. X  #include <X11/Xaw/Dialog.h>
  698. X  #include <X11/Xaw/Box.h>
  699. X  #include <X11/Xaw/Form.h>
  700. X+ #include <X11/Xaw/Cardinals.h>
  701. X+ #include <X11/Xaw/Text.h>
  702. X+ #include <X11/Xaw/AsciiText.h>
  703. X+ #include <X11/Xaw/MenuButton.h>
  704. X+ #include <X11/Xaw/SimpleMenu.h>
  705. X+ #include <X11/Xaw/Sme.h>
  706. X+ #include <X11/Xaw/SmeBSB.h>
  707. X+ #include <X11/Xaw/Toggle.h>
  708. X  /* R3 */
  709. X  #else
  710. X  #include <X11/Command.h>
  711. X***************
  712. X*** 50,52 ****
  713. X--- 58,61 ----
  714. X  #include <X11/Form.h>
  715. X  #include <X11/Scroll.h>        /* XtRFloat lives here! */
  716. X  #endif
  717. X+ 
  718. END_OF_FILE
  719. if test 636 -ne `wc -c <'fig.h.diff'`; then
  720.     echo shar: \"'fig.h.diff'\" unpacked with wrong size!
  721. fi
  722. # end of 'fig.h.diff'
  723. fi
  724. if test -f 'file.c.diff' -a "${1}" != "-c" ; then 
  725.   echo shar: Will not clobber existing file \"'file.c.diff'\"
  726. else
  727. echo shar: Extracting \"'file.c.diff'\" \(462 characters\)
  728. sed "s/^X//" >'file.c.diff' <<'END_OF_FILE'
  729. X*** file.c.old    Tue Apr 24 11:48:16 1990
  730. X--- file.c    Fri Apr 13 09:16:29 1990
  731. X***************
  732. X*** 119,128 ****
  733. X--- 119,135 ----
  734. X  
  735. X  status()
  736. X  {
  737. X+ #ifdef SYSV
  738. X+     extern char    *getcwd();
  739. X+ 
  740. X+     if (*directory == NULL) {
  741. X+         if (!getcwd(directory,1024)) {
  742. X+ #else
  743. X      extern char    *getwd();
  744. X  
  745. X      if (*directory == NULL) {
  746. X          if (NULL == getwd(directory)) {
  747. X+ #endif
  748. X          put_msg("%s", directory);    /* err msg is in directory */
  749. X          *directory = '\0';
  750. X          return;
  751. END_OF_FILE
  752. if test 462 -ne `wc -c <'file.c.diff'`; then
  753.     echo shar: \"'file.c.diff'\" unpacked with wrong size!
  754. fi
  755. # end of 'file.c.diff'
  756. fi
  757. if test -f 'flip.c.diff' -a "${1}" != "-c" ; then 
  758.   echo shar: Will not clobber existing file \"'flip.c.diff'\"
  759. else
  760. echo shar: Extracting \"'flip.c.diff'\" \(2015 characters\)
  761. sed "s/^X//" >'flip.c.diff' <<'END_OF_FILE'
  762. X*** flip.c.old    Tue Apr 24 11:48:16 1990
  763. X--- flip.c    Mon Apr 16 11:20:10 1990
  764. X***************
  765. X*** 109,115 ****
  766. X  {
  767. X      F_arc    *arc;
  768. X  
  769. X!     win_setmouseposition(canvas_swfd, px, py);
  770. X      if (pointmarker_shown) toggle_arcpointmarker(a);
  771. X      if (copy) {
  772. X          arc = copy_arc(a);
  773. X--- 109,115 ----
  774. X  {
  775. X      F_arc    *arc;
  776. X  
  777. X!     win_setmouseposition(canvas_win, px, py);
  778. X      if (pointmarker_shown) toggle_arcpointmarker(a);
  779. X      if (copy) {
  780. X          arc = copy_arc(a);
  781. X***************
  782. X*** 141,147 ****
  783. X  {
  784. X      F_compound    *compound;
  785. X  
  786. X!     win_setmouseposition(canvas_swfd, px, py);
  787. X      set_temp_cursor(&wait_cursor);
  788. X      if (copy) {
  789. X          compound = copy_compound(c);
  790. X--- 141,147 ----
  791. X  {
  792. X      F_compound    *compound;
  793. X  
  794. X!     win_setmouseposition(canvas_win, px, py);
  795. X      set_temp_cursor(&wait_cursor);
  796. X      if (copy) {
  797. X          compound = copy_compound(c);
  798. X***************
  799. X*** 171,177 ****
  800. X  {
  801. X      F_ellipse    *ellipse;
  802. X  
  803. X!     win_setmouseposition(canvas_swfd, px, py);
  804. X      if (pointmarker_shown) toggle_ellipsepointmarker(e);
  805. X      if (copy) {
  806. X          ellipse = copy_ellipse(e);
  807. X--- 171,177 ----
  808. X  {
  809. X      F_ellipse    *ellipse;
  810. X  
  811. X!     win_setmouseposition(canvas_win, px, py);
  812. X      if (pointmarker_shown) toggle_ellipsepointmarker(e);
  813. X      if (copy) {
  814. X          ellipse = copy_ellipse(e);
  815. X***************
  816. X*** 203,209 ****
  817. X  {
  818. X      F_line    *line;
  819. X  
  820. X!     win_setmouseposition(canvas_swfd, px, py);
  821. X      if (pointmarker_shown) toggle_linepointmarker(l);
  822. X      if (copy) {
  823. X          line = copy_line(l);
  824. X--- 203,209 ----
  825. X  {
  826. X      F_line    *line;
  827. X  
  828. X!     win_setmouseposition(canvas_win, px, py);
  829. X      if (pointmarker_shown) toggle_linepointmarker(l);
  830. X      if (copy) {
  831. X          line = copy_line(l);
  832. X***************
  833. X*** 235,241 ****
  834. X  {
  835. X      F_spline    *spline;
  836. X  
  837. X!     win_setmouseposition(canvas_swfd, px, py);
  838. X      if (pointmarker_shown) toggle_splinepointmarker(s);
  839. X      if (copy) {
  840. X          spline = copy_spline(s);
  841. X--- 235,241 ----
  842. X  {
  843. X      F_spline    *spline;
  844. X  
  845. X!     win_setmouseposition(canvas_win, px, py);
  846. X      if (pointmarker_shown) toggle_splinepointmarker(s);
  847. X      if (copy) {
  848. X          spline = copy_spline(s);
  849. END_OF_FILE
  850. if test 2015 -ne `wc -c <'flip.c.diff'`; then
  851.     echo shar: \"'flip.c.diff'\" unpacked with wrong size!
  852. fi
  853. # end of 'flip.c.diff'
  854. fi
  855. if test -f 'font.c.diff' -a "${1}" != "-c" ; then 
  856.   echo shar: Will not clobber existing file \"'font.c.diff'\"
  857. else
  858. echo shar: Extracting \"'font.c.diff'\" \(1669 characters\)
  859. sed "s/^X//" >'font.c.diff' <<'END_OF_FILE'
  860. X*** font.c.old    Tue Apr 24 11:48:17 1990
  861. X--- font.c    Thu Apr  5 12:01:48 1990
  862. X***************
  863. X*** 31,37 ****
  864. X      {
  865. X      struct    xfont *newfont, *nf;
  866. X      int    f,count,i,p,ss;
  867. X!     char    **fontlist,**fname,*np;
  868. X  
  869. X      if( appres.boldFont == NULL || *appres.boldFont == NULL)
  870. X          appres.boldFont = BOLD_FONT;
  871. X--- 31,37 ----
  872. X      {
  873. X      struct    xfont *newfont, *nf;
  874. X      int    f,count,i,p,ss;
  875. X!     char    **fontlist,**fname;
  876. X  
  877. X      if( appres.boldFont == NULL || *appres.boldFont == NULL)
  878. X          appres.boldFont = BOLD_FONT;
  879. X***************
  880. X*** 87,93 ****
  881. X                  nf->fstruct = NULL;    /* ditto */
  882. X                  nf->fname = flist[i].fn;    /* keep actual name */
  883. X                  nf->next = NULL;
  884. X-                 fname++;        /* point to next name (if any) */
  885. X                  }
  886. X                  }
  887. X              }
  888. X--- 87,92 ----
  889. X***************
  890. X*** 120,140 ****
  891. X  lookfont(f,s)
  892. X  int f,s;
  893. X      {
  894. X-     int    found = FALSE;
  895. X      struct    xfont *xf;
  896. X-     Font    font;
  897. X      XFontStruct *fontst;
  898. X  
  899. X      xf = fontnames[f].xfontlist;    /* go through the linked list looking for match */
  900. X      if (xf == NULL)
  901. X          return roman_font;    /* use a default font */
  902. X!     while (!found)
  903. X          {
  904. X          if (s <= xf->size)    /* exact or larger point size */
  905. X-             {
  906. X-             found = TRUE;
  907. X              break;
  908. X-             }
  909. X          if (xf->next != NULL)    /* keep ptr to last if not found */
  910. X              xf = xf->next;
  911. X          else
  912. X--- 119,134 ----
  913. X  lookfont(f,s)
  914. X  int f,s;
  915. X      {
  916. X      struct    xfont *xf;
  917. X      XFontStruct *fontst;
  918. X  
  919. X      xf = fontnames[f].xfontlist;    /* go through the linked list looking for match */
  920. X      if (xf == NULL)
  921. X          return roman_font;    /* use a default font */
  922. X!     while (1)
  923. X          {
  924. X          if (s <= xf->size)    /* exact or larger point size */
  925. X              break;
  926. X          if (xf->next != NULL)    /* keep ptr to last if not found */
  927. X              xf = xf->next;
  928. X          else
  929. END_OF_FILE
  930. if test 1669 -ne `wc -c <'font.c.diff'`; then
  931.     echo shar: \"'font.c.diff'\" unpacked with wrong size!
  932. fi
  933. # end of 'font.c.diff'
  934. fi
  935. if test -f 'func.h.diff' -a "${1}" != "-c" ; then 
  936.   echo shar: Will not clobber existing file \"'func.h.diff'\"
  937. else
  938. echo shar: Extracting \"'func.h.diff'\" \(384 characters\)
  939. sed "s/^X//" >'func.h.diff' <<'END_OF_FILE'
  940. X*** func.h.old    Tue Apr 24 11:48:17 1990
  941. X--- func.h    Fri Apr  6 17:04:30 1990
  942. X***************
  943. X*** 49,54 ****
  944. X--- 49,55 ----
  945. X  #define            F_CHANGE_THICK        54
  946. X  #define            F_CHANGE_STYLE        55
  947. X  #define            F_CHANGE_TEXT        56
  948. X+ #define                     F_CHANGE                57
  949. X  
  950. X  #define            F_SET_PEN_SIZE        70   /*  set pen size    */
  951. X  #define            F_SET_LINE_STYLE    71   /*  set line style  */
  952. END_OF_FILE
  953. if test 384 -ne `wc -c <'func.h.diff'`; then
  954.     echo shar: \"'func.h.diff'\" unpacked with wrong size!
  955. fi
  956. # end of 'func.h.diff'
  957. fi
  958. if test -f 'graphics.c.diff' -a "${1}" != "-c" ; then 
  959.   echo shar: Will not clobber existing file \"'graphics.c.diff'\"
  960. else
  961. echo shar: Extracting \"'graphics.c.diff'\" \(1681 characters\)
  962. sed "s/^X//" >'graphics.c.diff' <<'END_OF_FILE'
  963. X*** graphics.c.old    Tue Apr 24 11:48:18 1990
  964. X--- graphics.c    Mon Apr 16 11:25:46 1990
  965. X***************
  966. X*** 51,57 ****
  967. X          xmid = half(x2, x3);
  968. X          ymid = half(y2, y3);
  969. X          if (fabs(x1 - xmid) < THRESHOLD && fabs(y1 - ymid) < THRESHOLD) {
  970. X!         pw_vector(canvas_pixwin, round(x1), round(y1), 
  971. X              round(xmid), round(ymid), op, thick, style, style_val);
  972. X          }
  973. X          else {
  974. X--- 51,57 ----
  975. X          xmid = half(x2, x3);
  976. X          ymid = half(y2, y3);
  977. X          if (fabs(x1 - xmid) < THRESHOLD && fabs(y1 - ymid) < THRESHOLD) {
  978. X!         pw_vector(canvas_win, round(x1), round(y1), 
  979. X              round(xmid), round(ymid), op, thick, style, style_val);
  980. X          }
  981. X          else {
  982. X***************
  983. X*** 60,66 ****
  984. X          }
  985. X  
  986. X          if (fabs(xmid - x4) < THRESHOLD && fabs(ymid - y4) < THRESHOLD) {
  987. X!         pw_vector(canvas_pixwin, round(xmid), round(ymid), 
  988. X              round(x4), round(y4), op, thick, style, style_val);
  989. X          }
  990. X          else {
  991. X--- 60,66 ----
  992. X          }
  993. X  
  994. X          if (fabs(xmid - x4) < THRESHOLD && fabs(ymid - y4) < THRESHOLD) {
  995. X!         pw_vector(canvas_win, round(xmid), round(ymid), 
  996. X              round(x4), round(y4), op, thick, style, style_val);
  997. X          }
  998. X          else {
  999. X***************
  1000. X*** 86,92 ****
  1001. X  
  1002. X      while(pop(&x0, &y0, &x1, &y1, &x2, &y2, &x3, &y3)) {
  1003. X          if (fabs(x0 - x3) < THRESHOLD && fabs(y0 - y3) < THRESHOLD) {
  1004. X!         pw_vector(canvas_pixwin, round(x0), round(y0), 
  1005. X              round(x3), round(y3), op, thick, style, style_val);
  1006. X          }
  1007. X          else {
  1008. X--- 86,92 ----
  1009. X  
  1010. X      while(pop(&x0, &y0, &x1, &y1, &x2, &y2, &x3, &y3)) {
  1011. X          if (fabs(x0 - x3) < THRESHOLD && fabs(y0 - y3) < THRESHOLD) {
  1012. X!         pw_vector(canvas_win, round(x0), round(y0), 
  1013. X              round(x3), round(y3), op, thick, style, style_val);
  1014. X          }
  1015. X          else {
  1016. END_OF_FILE
  1017. if test 1681 -ne `wc -c <'graphics.c.diff'`; then
  1018.     echo shar: \"'graphics.c.diff'\" unpacked with wrong size!
  1019. fi
  1020. # end of 'graphics.c.diff'
  1021. fi
  1022. if test -f 'grid.c.diff' -a "${1}" != "-c" ; then 
  1023.   echo shar: Will not clobber existing file \"'grid.c.diff'\"
  1024. else
  1025. echo shar: Extracting \"'grid.c.diff'\" \(1781 characters\)
  1026. sed "s/^X//" >'grid.c.diff' <<'END_OF_FILE'
  1027. X*** grid.c.old    Tue Apr 24 11:48:19 1990
  1028. X--- grid.c    Mon Apr 16 11:25:54 1990
  1029. X***************
  1030. X*** 62,68 ****
  1031. X  
  1032. X  init_grid()
  1033. X  {
  1034. X!     long    bg, fg;
  1035. X      Arg    tmp_arg[3];
  1036. X  
  1037. X      XtSetArg(tmp_arg[0], XtNbackground, &bg);
  1038. X--- 62,68 ----
  1039. X  
  1040. X  init_grid()
  1041. X  {
  1042. X!     unsigned long bg, fg;
  1043. X      Arg    tmp_arg[3];
  1044. X  
  1045. X      XtSetArg(tmp_arg[0], XtNbackground, &bg);
  1046. X***************
  1047. X*** 69,84 ****
  1048. X      XtSetArg(tmp_arg[1], XtNforeground, &fg);
  1049. X      XtGetValues(canvas_sw, tmp_arg, 2);
  1050. X      
  1051. X!     null_pm = XCreatePixmapFromBitmapData(tool_d, canvas_pixwin,
  1052. X          null_bits, null_width, null_height,
  1053. X          fg, bg,    DefaultDepthOfScreen(tool_s));
  1054. X!     quarter_pm = XCreatePixmapFromBitmapData(tool_d, canvas_pixwin,
  1055. X          quarter_bits, quarter_width, quarter_height,
  1056. X          fg, bg,    DefaultDepthOfScreen(tool_s));
  1057. X!     half_pm = XCreatePixmapFromBitmapData(tool_d, canvas_pixwin,
  1058. X          half_bits, half_width, half_height,
  1059. X          fg, bg,    DefaultDepthOfScreen(tool_s));
  1060. X!     half_cm_pm = XCreatePixmapFromBitmapData(tool_d, canvas_pixwin,
  1061. X          half_cm_bits, half_cm_width, half_cm_height,
  1062. X          fg, bg, DefaultDepthOfScreen(tool_s));
  1063. X  }
  1064. X--- 69,84 ----
  1065. X      XtSetArg(tmp_arg[1], XtNforeground, &fg);
  1066. X      XtGetValues(canvas_sw, tmp_arg, 2);
  1067. X      
  1068. X!     null_pm = XCreatePixmapFromBitmapData(tool_d, canvas_win,
  1069. X          null_bits, null_width, null_height,
  1070. X          fg, bg,    DefaultDepthOfScreen(tool_s));
  1071. X!     quarter_pm = XCreatePixmapFromBitmapData(tool_d, canvas_win,
  1072. X          quarter_bits, quarter_width, quarter_height,
  1073. X          fg, bg,    DefaultDepthOfScreen(tool_s));
  1074. X!     half_pm = XCreatePixmapFromBitmapData(tool_d, canvas_win,
  1075. X          half_bits, half_width, half_height,
  1076. X          fg, bg,    DefaultDepthOfScreen(tool_s));
  1077. X!     half_cm_pm = XCreatePixmapFromBitmapData(tool_d, canvas_win,
  1078. X          half_cm_bits, half_cm_width, half_cm_height,
  1079. X          fg, bg, DefaultDepthOfScreen(tool_s));
  1080. X  }
  1081. END_OF_FILE
  1082. if test 1781 -ne `wc -c <'grid.c.diff'`; then
  1083.     echo shar: \"'grid.c.diff'\" unpacked with wrong size!
  1084. fi
  1085. # end of 'grid.c.diff'
  1086. fi
  1087. if test -f 'intspline.c.diff' -a "${1}" != "-c" ; then 
  1088.   echo shar: Will not clobber existing file \"'intspline.c.diff'\"
  1089. else
  1090. echo shar: Extracting \"'intspline.c.diff'\" \(1186 characters\)
  1091. sed "s/^X//" >'intspline.c.diff' <<'END_OF_FILE'
  1092. X*** intspline.c.old    Tue Apr 24 11:48:19 1990
  1093. X--- intspline.c    Mon Apr 16 11:26:01 1990
  1094. X***************
  1095. X*** 68,74 ****
  1096. X      if (x != fix_x || y != fix_y) get_intermediatepoint(x, y);
  1097. X      draw_elasticline();
  1098. X      if (num_point <= 2) {
  1099. X!         pw_vector(canvas_pixwin, first_point->x, first_point->y,
  1100. X              cur_point->x, cur_point->y, PAINT, 1, SOLID_LINE, 0.0);
  1101. X          if (num_point == 1) free((char*)cur_point);
  1102. X          free((char*)first_point);
  1103. X--- 68,74 ----
  1104. X      if (x != fix_x || y != fix_y) get_intermediatepoint(x, y);
  1105. X      draw_elasticline();
  1106. X      if (num_point <= 2) {
  1107. X!         pw_vector(canvas_win, first_point->x, first_point->y,
  1108. X              cur_point->x, cur_point->y, PAINT, 1, SOLID_LINE, 0.0);
  1109. X          if (num_point == 1) free((char*)cur_point);
  1110. X          free((char*)first_point);
  1111. X***************
  1112. X*** 87,93 ****
  1113. X      spline->color = cur_color;
  1114. X      spline->depth = 0;
  1115. X      spline->area_fill = 0;
  1116. X!     spline->pen = NULL;
  1117. X      spline->points = first_point;
  1118. X      spline->controls = NULL; 
  1119. X      spline->next = NULL; 
  1120. X--- 87,93 ----
  1121. X      spline->color = cur_color;
  1122. X      spline->depth = 0;
  1123. X      spline->area_fill = 0;
  1124. X!     spline->pen = 0;
  1125. X      spline->points = first_point;
  1126. X      spline->controls = NULL; 
  1127. X      spline->next = NULL; 
  1128. END_OF_FILE
  1129. if test 1186 -ne `wc -c <'intspline.c.diff'`; then
  1130.     echo shar: \"'intspline.c.diff'\" unpacked with wrong size!
  1131. fi
  1132. # end of 'intspline.c.diff'
  1133. fi
  1134. if test -f 'object.h.diff' -a "${1}" != "-c" ; then 
  1135.   echo shar: Will not clobber existing file \"'object.h.diff'\"
  1136. else
  1137. echo shar: Extracting \"'object.h.diff'\" \(1801 characters\)
  1138. sed "s/^X//" >'object.h.diff' <<'END_OF_FILE'
  1139. X*** object.h.old    Tue Apr 24 11:48:23 1990
  1140. X--- object.h    Wed Apr 11 10:56:21 1990
  1141. X***************
  1142. X*** 14,26 ****
  1143. X              }
  1144. X          F_pattern;
  1145. X  
  1146. X- /* not used anymore - integer is used instead */
  1147. X- typedef        struct f_pen {
  1148. X-             int            x, y;
  1149. X-             int            *p;
  1150. X-             }
  1151. X-         F_pen;
  1152. X- 
  1153. X  typedef        struct f_point {
  1154. X              int            x, y;
  1155. X              struct f_point        *next;
  1156. X--- 14,19 ----
  1157. X***************
  1158. X*** 56,64 ****
  1159. X              float            style_val;
  1160. X              float            angle;
  1161. X              int            pen;
  1162. X-             /*
  1163. X-             struct f_pen        *pen;
  1164. X-             */
  1165. X              int            area_fill;
  1166. X              struct f_pos        center;
  1167. X              struct f_pos        radiuses;
  1168. X--- 49,54 ----
  1169. X***************
  1170. X*** 76,84 ****
  1171. X              int            color;
  1172. X              int            depth;
  1173. X              int            pen;
  1174. X-             /*
  1175. X-             struct f_pen        *pen;
  1176. X-             */
  1177. X              int            area_fill;
  1178. X              float            style_val;
  1179. X              int            direction;
  1180. X--- 66,71 ----
  1181. X***************
  1182. X*** 101,111 ****
  1183. X              int            color;
  1184. X              int            depth;
  1185. X              float            style_val;
  1186. X!             int            pen; /* actually corner radius for T_ARC_BOX */
  1187. X!             /*
  1188. X!             struct f_pen        *pen;
  1189. X!             */
  1190. X              int            area_fill;
  1191. X              struct f_arrow        *for_arrow;
  1192. X              struct f_arrow        *back_arrow;
  1193. X              struct f_point        *points;
  1194. X--- 88,96 ----
  1195. X              int            color;
  1196. X              int            depth;
  1197. X              float            style_val;
  1198. X!             int            pen; 
  1199. X              int            area_fill;
  1200. X+             int            radius; /* corner radius for T_ARC_BOX */
  1201. X              struct f_arrow        *for_arrow;
  1202. X              struct f_arrow        *back_arrow;
  1203. X              struct f_point        *points;
  1204. X***************
  1205. X*** 136,144 ****
  1206. X              int            base_x;
  1207. X              int            base_y;
  1208. X              int            pen;
  1209. X-             /*
  1210. X-             struct f_pen        *pen;
  1211. X-             */
  1212. X              char            *cstring;
  1213. X              struct f_text        *next;
  1214. X              }
  1215. X--- 121,126 ----
  1216. X***************
  1217. X*** 167,175 ****
  1218. X              int            depth;
  1219. X              float            style_val;
  1220. X              int            pen;
  1221. X-             /*
  1222. X-             struct f_pen        *pen;
  1223. X-             */
  1224. X              int            area_fill;
  1225. X              struct f_arrow        *for_arrow;
  1226. X              struct f_arrow        *back_arrow;
  1227. X--- 149,154 ----
  1228. END_OF_FILE
  1229. if test 1801 -ne `wc -c <'object.h.diff'`; then
  1230.     echo shar: \"'object.h.diff'\" unpacked with wrong size!
  1231. fi
  1232. # end of 'object.h.diff'
  1233. fi
  1234. if test -f 'paintop.h.diff' -a "${1}" != "-c" ; then 
  1235.   echo shar: Will not clobber existing file \"'paintop.h.diff'\"
  1236. else
  1237. echo shar: Extracting \"'paintop.h.diff'\" \(480 characters\)
  1238. sed "s/^X//" >'paintop.h.diff' <<'END_OF_FILE'
  1239. X*** paintop.h.old    Tue Apr 24 11:48:23 1990
  1240. X--- paintop.h    Tue Apr 17 14:36:54 1990
  1241. X***************
  1242. X*** 7,16 ****
  1243. X   *    %W%    %G%
  1244. X  */
  1245. X  
  1246. X! #define                 INV_PAINT    GXxor
  1247. X! #define                 MERGE        GXor
  1248. X! #define                 PAINT        GXcopy
  1249. X! #define                 ERASE        GXcopyInverted
  1250. X  
  1251. X! #define                 DRAW        1
  1252. X! #define                 UNDRAW        0
  1253. X--- 7,18 ----
  1254. X   *    %W%    %G%
  1255. X  */
  1256. X  
  1257. X! #define    INV_PAINT    0
  1258. X! #define    MERGE        1
  1259. X! #define    PAINT        2
  1260. X! #define    ERASE        3
  1261. X  
  1262. X! #define    NUMOPS        4
  1263. X! 
  1264. X! #define    DRAW        1
  1265. X! #define    UNDRAW        0
  1266. END_OF_FILE
  1267. if test 480 -ne `wc -c <'paintop.h.diff'`; then
  1268.     echo shar: \"'paintop.h.diff'\" unpacked with wrong size!
  1269. fi
  1270. # end of 'paintop.h.diff'
  1271. fi
  1272. if test -f 'panel.h.diff' -a "${1}" != "-c" ; then 
  1273.   echo shar: Will not clobber existing file \"'panel.h.diff'\"
  1274. else
  1275. echo shar: Extracting \"'panel.h.diff'\" \(2038 characters\)
  1276. sed "s/^X//" >'panel.h.diff' <<'END_OF_FILE'
  1277. X*** panel.h.old    Tue Apr 24 11:48:25 1990
  1278. X--- panel.h    Mon Apr  9 09:39:13 1990
  1279. X***************
  1280. X*** 486,519 ****
  1281. X      0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, };
  1282. X  mpr_static(text_ic, 32, 32, 1, text_image);
  1283. X  
  1284. X- static char change_style_image[128]={
  1285. X-     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  1286. X-     0x00,0x02,0x00,0x10,0x00,0x02,0x00,0x10,0x00,0x02,0x00,0x00,
  1287. X-     0x00,0x01,0x00,0x08,0x00,0x01,0x00,0x08,0x00,0x01,0x00,0x00,
  1288. X-     0x80,0x00,0x00,0x04,0x80,0x20,0x04,0x04,0x80,0x30,0x0c,0x00,
  1289. X-     0x40,0x18,0x18,0x02,0x40,0xfc,0x3f,0x02,0x40,0xfc,0x3f,0x00,
  1290. X-     0x20,0x18,0x18,0x01,0x20,0x30,0x0c,0x01,0x20,0x20,0x04,0x00,
  1291. X-     0x10,0x00,0x80,0x00,0x10,0x00,0x80,0x00,0x10,0x00,0x00,0x00,
  1292. X-     0x08,0x00,0x40,0x00,0x08,0x00,0x40,0x00,0x08,0x00,0x00,0x00,
  1293. X-     0x04,0x00,0x20,0x00,0x04,0x00,0x20,0x00,0x04,0x00,0x00,0x00,
  1294. X-     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  1295. X-     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
  1296. X- mpr_static(change_style_ic, 32, 32, 1, change_style_image);
  1297. X- 
  1298. X- static char change_thick_image[128]={
  1299. X-     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  1300. X-     0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x0f,0x00,0x04,0x00,0x0f,
  1301. X-     0x00,0x02,0x80,0x07,0x00,0x02,0x80,0x07,0x00,0x02,0x80,0x07,
  1302. X-     0x00,0x01,0xc0,0x03,0x00,0x81,0xc0,0x03,0x00,0x81,0xc1,0x03,
  1303. X-     0x80,0x00,0xe3,0x01,0x80,0xf8,0xe7,0x01,0x80,0xf8,0xe7,0x01,
  1304. X-     0x80,0x00,0xe3,0x01,0x40,0x80,0xf1,0x00,0x40,0x80,0xf0,0x00,
  1305. X-     0x40,0x00,0xf0,0x00,0x20,0x00,0x78,0x00,0x20,0x00,0x78,0x00,
  1306. X-     0x20,0x00,0x78,0x00,0x10,0x00,0x3c,0x00,0x10,0x00,0x3c,0x00,
  1307. X-     0x10,0x00,0x3c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  1308. X-     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  1309. X-     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
  1310. X- mpr_static(change_thick_ic, 32, 32, 1, change_thick_image);
  1311. X- 
  1312. X  static char     change_image[128] = {
  1313. X     0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1314. X     0x00, 0x00, 0x00, 0x00, 0xf8, 0x07, 0x00, 0x00, 0x08, 0x04, 0x00, 0x00,
  1315. X--- 486,491 ----
  1316. END_OF_FILE
  1317. if test 2038 -ne `wc -c <'panel.h.diff'`; then
  1318.     echo shar: \"'panel.h.diff'\" unpacked with wrong size!
  1319. fi
  1320. # end of 'panel.h.diff'
  1321. fi
  1322. if test -f 'panel2.h.diff' -a "${1}" != "-c" ; then 
  1323.   echo shar: Will not clobber existing file \"'panel2.h.diff'\"
  1324. else
  1325. echo shar: Extracting \"'panel2.h.diff'\" \(1511 characters\)
  1326. sed "s/^X//" >'panel2.h.diff' <<'END_OF_FILE'
  1327. X*** panel2.h.old    Tue Apr 24 11:48:26 1990
  1328. X--- panel2.h    Mon Apr  9 09:39:37 1990
  1329. X***************
  1330. X*** 291,314 ****
  1331. X   0x00, 0x00, 0x00, 0x00 };
  1332. X  mpr_static(textR_ic,54,28,1,textR_image);
  1333. X  
  1334. X- static char change_text_image[180] = {
  1335. X-  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1336. X-  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1337. X-  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x7f, 0x00, 0x00, 0x00, 0x00,
  1338. X-  0xe0, 0x7f, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x60, 0x00, 0xc0, 0x7f, 0x00,
  1339. X-  0xc0, 0x40, 0x00, 0xc0, 0x7f, 0x00, 0xc0, 0x00, 0x00, 0xc0, 0x7f, 0x00,
  1340. X-  0xc0, 0x08, 0x08, 0xc1, 0x01, 0x00, 0xc0, 0x0f, 0x0c, 0xc3, 0x01, 0x00,
  1341. X-  0xc0, 0x0f, 0xfe, 0xc7, 0x3f, 0x00, 0xc0, 0x08, 0xfe, 0xc7, 0x3f, 0x00,
  1342. X-  0xc0, 0x00, 0x0c, 0xc3, 0x3f, 0x00, 0xc0, 0x00, 0x08, 0xc1, 0x01, 0x00,
  1343. X-  0xc0, 0x00, 0x00, 0xc0, 0x01, 0x00, 0xc0, 0x40, 0x00, 0xc0, 0x7f, 0x00,
  1344. X-  0xc0, 0x60, 0x00, 0xc0, 0x7f, 0x00, 0xe0, 0x7f, 0x00, 0xc0, 0x7f, 0x00,
  1345. X-  0xf0, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1346. X-  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1347. X-  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1348. X-  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  1349. X-  };
  1350. X- mpr_static(change_text_ic,46,28,1,change_text_image);
  1351. X- 
  1352. X  /* image with L dominant, P light */
  1353. X  static char land_image[120] = {
  1354. X     0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x03, 0x54, 0x05,
  1355. X--- 291,296 ----
  1356. END_OF_FILE
  1357. if test 1511 -ne `wc -c <'panel2.h.diff'`; then
  1358.     echo shar: \"'panel2.h.diff'\" unpacked with wrong size!
  1359. fi
  1360. # end of 'panel2.h.diff'
  1361. fi
  1362. if test -f 'patchlevel.h.diff' -a "${1}" != "-c" ; then 
  1363.   echo shar: Will not clobber existing file \"'patchlevel.h.diff'\"
  1364. else
  1365. echo shar: Extracting \"'patchlevel.h.diff'\" \(172 characters\)
  1366. sed "s/^X//" >'patchlevel.h.diff' <<'END_OF_FILE'
  1367. X*** patchlevel.h.old    Tue Apr 24 11:48:27 1990
  1368. X--- patchlevel.h    Thu Apr  5 17:42:55 1990
  1369. X***************
  1370. X*** 1 ****
  1371. X! #define PATCHLEVEL 5
  1372. X--- 1 ----
  1373. X! #define PATCHLEVEL 6
  1374. END_OF_FILE
  1375. if test 172 -ne `wc -c <'patchlevel.h.diff'`; then
  1376.     echo shar: \"'patchlevel.h.diff'\" unpacked with wrong size!
  1377. fi
  1378. # end of 'patchlevel.h.diff'
  1379. fi
  1380. if test -f 'print.c.diff' -a "${1}" != "-c" ; then 
  1381.   echo shar: Will not clobber existing file \"'print.c.diff'\"
  1382. else
  1383. echo shar: Extracting \"'print.c.diff'\" \(545 characters\)
  1384. sed "s/^X//" >'print.c.diff' <<'END_OF_FILE'
  1385. X*** print.c.old    Tue Apr 24 11:48:30 1990
  1386. X--- print.c    Mon Apr 16 11:22:34 1990
  1387. X***************
  1388. X*** 36,42 ****
  1389. X      }
  1390. X      else {
  1391. X          if (figure_modified)    /* modified without saving, confirm print */
  1392. X!             if (wmgr_confirm(canvas_swfd, conf_prnt) != -1)
  1393. X              return;
  1394. X  
  1395. X                  if (! strcmp("Default", printer)) {
  1396. X--- 36,42 ----
  1397. X      }
  1398. X      else {
  1399. X          if (figure_modified)    /* modified without saving, confirm print */
  1400. X!             if (wmgr_confirm(canvas_win, conf_prnt) != -1)
  1401. X              return;
  1402. X  
  1403. X                  if (! strcmp("Default", printer)) {
  1404. END_OF_FILE
  1405. if test 545 -ne `wc -c <'print.c.diff'`; then
  1406.     echo shar: \"'print.c.diff'\" unpacked with wrong size!
  1407. fi
  1408. # end of 'print.c.diff'
  1409. fi
  1410. if test -f 'psbits3.c.diff' -a "${1}" != "-c" ; then 
  1411.   echo shar: Will not clobber existing file \"'psbits3.c.diff'\"
  1412. else
  1413. echo shar: Extracting \"'psbits3.c.diff'\" \(505 characters\)
  1414. sed "s/^X//" >'psbits3.c.diff' <<'END_OF_FILE'
  1415. X*** psbits3.c.old    Tue Apr 24 11:48:33 1990
  1416. X--- psbits3.c    Wed Apr 11 09:52:58 1990
  1417. X***************
  1418. X*** 717,723 ****
  1419. X          Times_Italic_bits,
  1420. X          Times_Bold_bits,
  1421. X          Times_BoldItalic_bits,
  1422. X!         AvantGarde_bits,
  1423. X          AvantGarde_BookOblique_bits,
  1424. X          AvantGarde_Demi_bits,
  1425. X          AvantGarde_DemiOblique_bits,
  1426. X--- 717,723 ----
  1427. X          Times_Italic_bits,
  1428. X          Times_Bold_bits,
  1429. X          Times_BoldItalic_bits,
  1430. X!         AvantGarde_Book_bits,
  1431. X          AvantGarde_BookOblique_bits,
  1432. X          AvantGarde_Demi_bits,
  1433. X          AvantGarde_DemiOblique_bits,
  1434. END_OF_FILE
  1435. if test 505 -ne `wc -c <'psbits3.c.diff'`; then
  1436.     echo shar: \"'psbits3.c.diff'\" unpacked with wrong size!
  1437. fi
  1438. # end of 'psbits3.c.diff'
  1439. fi
  1440. if test -f 'redisplay.c.diff' -a "${1}" != "-c" ; then 
  1441.   echo shar: Will not clobber existing file \"'redisplay.c.diff'\"
  1442. else
  1443. echo shar: Extracting \"'redisplay.c.diff'\" \(2342 characters\)
  1444. sed "s/^X//" >'redisplay.c.diff' <<'END_OF_FILE'
  1445. X*** redisplay.c.old    Tue Apr 24 11:48:37 1990
  1446. X--- redisplay.c    Wed Apr 18 09:28:44 1990
  1447. X***************
  1448. X*** 24,32 ****
  1449. X          return;
  1450. X      for (fill=1; fill >= 0; fill--)
  1451. X          {
  1452. X-         redisplay_lineobject(objects->lines,fill);
  1453. X-         redisplay_ellipseobject(objects->ellipses,fill);
  1454. X          redisplay_arcobject(objects->arcs,fill);
  1455. X          redisplay_splineobject(objects->splines,fill);
  1456. X          }
  1457. X      if (pointmarker_shown)    /* show the point markers if they are on */
  1458. X--- 24,33 ----
  1459. X          return;
  1460. X      for (fill=1; fill >= 0; fill--)
  1461. X          {
  1462. X          redisplay_arcobject(objects->arcs,fill);
  1463. X+         redisplay_compoundobject(objects->compounds,fill);
  1464. X+         redisplay_ellipseobject(objects->ellipses,fill);
  1465. X+         redisplay_lineobject(objects->lines,fill);
  1466. X          redisplay_splineobject(objects->splines,fill);
  1467. X          }
  1468. X      if (pointmarker_shown)    /* show the point markers if they are on */
  1469. X***************
  1470. X*** 36,43 ****
  1471. X          for (c = objects->compounds; c != NULL; c = c->next)
  1472. X          draw_compoundbox(c, INV_PAINT);    /* show the compound boxes */
  1473. X          }
  1474. X-     /* fill compound objects later */
  1475. X-     redisplay_compoundobject(objects->compounds);
  1476. X      /* text doesn't have fill mode */
  1477. X      redisplay_textobject(objects->texts);
  1478. X      }
  1479. X--- 37,42 ----
  1480. X***************
  1481. X*** 98,106 ****
  1482. X          }
  1483. X      }
  1484. X  
  1485. X! redisplay_textobject(texts,fill)
  1486. X  F_text    *texts;
  1487. X- int fill;
  1488. X  {
  1489. X      F_text    *t;
  1490. X  
  1491. X--- 97,104 ----
  1492. X          }
  1493. X      }
  1494. X  
  1495. X! redisplay_textobject(texts)
  1496. X  F_text    *texts;
  1497. X  {
  1498. X      F_text    *t;
  1499. X  
  1500. X***************
  1501. X*** 108,120 ****
  1502. X          draw_text(t, PAINT);
  1503. X      }
  1504. X  
  1505. X! redisplay_compoundobject(compounds)
  1506. X  F_compound    *compounds;
  1507. X  {
  1508. X      F_compound    *c;
  1509. X  
  1510. X!     for (c = compounds; c != NULL; c = c->next)
  1511. X!         draw_compound(c);
  1512. X      }
  1513. X  
  1514. X  redisplay_canvas()
  1515. X--- 106,132 ----
  1516. X          draw_text(t, PAINT);
  1517. X      }
  1518. X  
  1519. X! redisplay_compoundobject(compounds,fill)
  1520. X  F_compound    *compounds;
  1521. X+ int fill;
  1522. X  {
  1523. X      F_compound    *c;
  1524. X  
  1525. X!     if(compounds == NULL)
  1526. X!         return;
  1527. X! 
  1528. X!     for (c = compounds; c != NULL; c = c->next) {
  1529. X!         redisplay_compoundobject(c->compounds,fill);
  1530. X!         redisplay_arcobject(compounds->arcs,fill);
  1531. X!         redisplay_ellipseobject(compounds->ellipses,fill);
  1532. X!         redisplay_lineobject(compounds->lines,fill);
  1533. X!         redisplay_splineobject(compounds->splines,fill);
  1534. X! 
  1535. X!         /* no filled text mode, just do text on non-filled pass */
  1536. X!         if(fill==0) {
  1537. X!             redisplay_textobject(compounds->texts);
  1538. X!             }
  1539. X!         }
  1540. X      }
  1541. X  
  1542. X  redisplay_canvas()
  1543. END_OF_FILE
  1544. if test 2342 -ne `wc -c <'redisplay.c.diff'`; then
  1545.     echo shar: \"'redisplay.c.diff'\" unpacked with wrong size!
  1546. fi
  1547. # end of 'redisplay.c.diff'
  1548. fi
  1549. if test -f 'resources.h.diff' -a "${1}" != "-c" ; then 
  1550.   echo shar: Will not clobber existing file \"'resources.h.diff'\"
  1551. else
  1552. echo shar: Extracting \"'resources.h.diff'\" \(969 characters\)
  1553. sed "s/^X//" >'resources.h.diff' <<'END_OF_FILE'
  1554. X*** resources.h.old    Tue Apr 24 11:48:37 1990
  1555. X--- resources.h    Mon Apr 16 11:36:11 1990
  1556. X***************
  1557. X*** 114,125 ****
  1558. X      set_line_stuff(1,SOLID_LINE,0.0,(op)); \
  1559. X      XDrawRectangle(tool_d,(win),gccache[(op)],(x),(y),(w),(h))
  1560. X  
  1561. X! EXTERN PIXWIN        canvas_pixwin,
  1562. X!             msg_pixwin,
  1563. X!             panel_pixwin,
  1564. X!             panel2_pixwin,
  1565. X!             sideruler_pixwin,
  1566. X!             topruler_pixwin;
  1567. X  
  1568. X  EXTERN CURSOR        cur_cursor;
  1569. X  EXTERN CURSORREC    arrow_cursor,
  1570. X--- 114,123 ----
  1571. X      set_line_stuff(1,SOLID_LINE,0.0,(op)); \
  1572. X      XDrawRectangle(tool_d,(win),gccache[(op)],(x),(y),(w),(h))
  1573. X  
  1574. X! EXTERN PIXWIN        canvas_win,
  1575. X!             msg_win,
  1576. X!             sideruler_win,
  1577. X!             topruler_win;
  1578. X  
  1579. X  EXTERN CURSOR        cur_cursor;
  1580. X  EXTERN CURSORREC    arrow_cursor,
  1581. X***************
  1582. X*** 146,158 ****
  1583. X              radius_panel,
  1584. X              sideruler_sw,
  1585. X              topruler_sw;
  1586. X- 
  1587. X- EXTERN FDTYPE        canvas_swfd,
  1588. X-             panel_swfd,
  1589. X-             panel2_swfd,
  1590. X-             msgswfd,
  1591. X-             trswfd,
  1592. X-             srswfd;
  1593. X  
  1594. X  EXTERN Display        *tool_d;
  1595. X  EXTERN Screen        *tool_s;
  1596. X--- 144,149 ----
  1597. END_OF_FILE
  1598. if test 969 -ne `wc -c <'resources.h.diff'`; then
  1599.     echo shar: \"'resources.h.diff'\" unpacked with wrong size!
  1600. fi
  1601. # end of 'resources.h.diff'
  1602. fi
  1603. if test -f 'rotate.c.diff' -a "${1}" != "-c" ; then 
  1604.   echo shar: Will not clobber existing file \"'rotate.c.diff'\"
  1605. else
  1606. echo shar: Extracting \"'rotate.c.diff'\" \(2019 characters\)
  1607. sed "s/^X//" >'rotate.c.diff' <<'END_OF_FILE'
  1608. X*** rotate.c.old    Tue Apr 24 11:48:38 1990
  1609. X--- rotate.c    Mon Apr 16 11:22:53 1990
  1610. X***************
  1611. X*** 107,113 ****
  1612. X  {
  1613. X      F_line    *line;
  1614. X  
  1615. X!     win_setmouseposition(canvas_swfd, px, py);
  1616. X      if (pointmarker_shown) toggle_linepointmarker(l);
  1617. X      if (copy) {
  1618. X          line = copy_line(l);
  1619. X--- 107,113 ----
  1620. X  {
  1621. X      F_line    *line;
  1622. X  
  1623. X!     win_setmouseposition(canvas_win, px, py);
  1624. X      if (pointmarker_shown) toggle_linepointmarker(l);
  1625. X      if (copy) {
  1626. X          line = copy_line(l);
  1627. X***************
  1628. X*** 140,146 ****
  1629. X  {
  1630. X      F_ellipse    *ellipse;
  1631. X  
  1632. X!     win_setmouseposition(canvas_swfd, px, py);
  1633. X      if (pointmarker_shown) toggle_ellipsepointmarker(e);
  1634. X      if (copy) {
  1635. X          ellipse = copy_ellipse(e);
  1636. X--- 140,146 ----
  1637. X  {
  1638. X      F_ellipse    *ellipse;
  1639. X  
  1640. X!     win_setmouseposition(canvas_win, px, py);
  1641. X      if (pointmarker_shown) toggle_ellipsepointmarker(e);
  1642. X      if (copy) {
  1643. X          ellipse = copy_ellipse(e);
  1644. X***************
  1645. X*** 173,179 ****
  1646. X  {
  1647. X      F_arc    *arc;
  1648. X  
  1649. X!     win_setmouseposition(canvas_swfd, px, py);
  1650. X      if (pointmarker_shown) toggle_arcpointmarker(a);
  1651. X      if (copy) {
  1652. X          arc = copy_arc(a);
  1653. X--- 173,179 ----
  1654. X  {
  1655. X      F_arc    *arc;
  1656. X  
  1657. X!     win_setmouseposition(canvas_win, px, py);
  1658. X      if (pointmarker_shown) toggle_arcpointmarker(a);
  1659. X      if (copy) {
  1660. X          arc = copy_arc(a);
  1661. X***************
  1662. X*** 206,212 ****
  1663. X  {
  1664. X      F_spline    *spline;
  1665. X  
  1666. X!     win_setmouseposition(canvas_swfd, px, py);
  1667. X      if (pointmarker_shown) toggle_splinepointmarker(s);
  1668. X      if (copy) {
  1669. X          spline = copy_spline(s);
  1670. X--- 206,212 ----
  1671. X  {
  1672. X      F_spline    *spline;
  1673. X  
  1674. X!     win_setmouseposition(canvas_win, px, py);
  1675. X      if (pointmarker_shown) toggle_splinepointmarker(s);
  1676. X      if (copy) {
  1677. X          spline = copy_spline(s);
  1678. X***************
  1679. X*** 239,245 ****
  1680. X  {
  1681. X      F_compound    *compound;
  1682. X  
  1683. X!     win_setmouseposition(canvas_swfd, px, py);
  1684. X      set_temp_cursor(&wait_cursor);
  1685. X      if (copy) {
  1686. X          compound = copy_compound(c);
  1687. X--- 239,245 ----
  1688. X  {
  1689. X      F_compound    *compound;
  1690. X  
  1691. X!     win_setmouseposition(canvas_win, px, py);
  1692. X      set_temp_cursor(&wait_cursor);
  1693. X      if (copy) {
  1694. X          compound = copy_compound(c);
  1695. END_OF_FILE
  1696. if test 2019 -ne `wc -c <'rotate.c.diff'`; then
  1697.     echo shar: \"'rotate.c.diff'\" unpacked with wrong size!
  1698. fi
  1699. # end of 'rotate.c.diff'
  1700. fi
  1701. if test -f 'save.c.diff' -a "${1}" != "-c" ; then 
  1702.   echo shar: Will not clobber existing file \"'save.c.diff'\"
  1703. else
  1704. echo shar: Extracting \"'save.c.diff'\" \(1749 characters\)
  1705. sed "s/^X//" >'save.c.diff' <<'END_OF_FILE'
  1706. X*** save.c.old    Tue Apr 24 11:48:39 1990
  1707. X--- save.c    Mon Apr 16 11:22:58 1990
  1708. X***************
  1709. X*** 49,55 ****
  1710. X              }
  1711. X          else if (prompt) {
  1712. X              sprintf(string, "\"%s\" File exists. Please click the LEFT button to COMFIRM overwrite. To cancel, click the MIDDLE or RIGHT button.", file_name);
  1713. X!             if (wmgr_confirm(canvas_swfd, string) != -1) {
  1714. X              put_msg("Cancel save");
  1715. X              return(-1);
  1716. X              }
  1717. X--- 49,55 ----
  1718. X              }
  1719. X          else if (prompt) {
  1720. X              sprintf(string, "\"%s\" File exists. Please click the LEFT button to COMFIRM overwrite. To cancel, click the MIDDLE or RIGHT button.", file_name);
  1721. X!             if (wmgr_confirm(canvas_win, string) != -1) {
  1722. X              put_msg("Cancel save");
  1723. X              return(-1);
  1724. X              }
  1725. X***************
  1726. X*** 192,200 ****
  1727. X  
  1728. X      if( l->points == NULL )
  1729. X          return;
  1730. X!     fprintf(fp, "%d %d %d %d %d %d %d %d %.3f %d %d\n",
  1731. X          O_POLYLINE, l->type, l->style, l->thickness,
  1732. X!         l->color, l->depth, l->pen, l->area_fill, l->style_val, 
  1733. X          ((f = l->for_arrow) ? 1 : 0), ((b = l->back_arrow) ? 1 : 0));
  1734. X      if (f)
  1735. X          fprintf(fp, "\t%d %d %.3f %.3f %.3f\n", f->type, f->style,
  1736. X--- 192,206 ----
  1737. X  
  1738. X      if( l->points == NULL )
  1739. X          return;
  1740. X!     if (l->type == T_ARC_BOX)
  1741. X!         fprintf(fp, "%d %d %d %d %d %d %d %d %.3f %d %d %d\n",
  1742. X          O_POLYLINE, l->type, l->style, l->thickness,
  1743. X!         l->color, l->depth, l->pen, l->area_fill, l->style_val, l->radius,
  1744. X!         ((f = l->for_arrow) ? 1 : 0), ((b = l->back_arrow) ? 1 : 0));
  1745. X!     else
  1746. X!         fprintf(fp, "%d %d %d %d %d %d %d %d %.3f %d %d\n",
  1747. X!         O_POLYLINE, l->type, l->style, l->thickness,
  1748. X!         l->color, l->depth, l->pen, l->area_fill, l->style_val,
  1749. X          ((f = l->for_arrow) ? 1 : 0), ((b = l->back_arrow) ? 1 : 0));
  1750. X      if (f)
  1751. X          fprintf(fp, "\t%d %d %.3f %.3f %.3f\n", f->type, f->style,
  1752. END_OF_FILE
  1753. if test 1749 -ne `wc -c <'save.c.diff'`; then
  1754.     echo shar: \"'save.c.diff'\" unpacked with wrong size!
  1755. fi
  1756. # end of 'save.c.diff'
  1757. fi
  1758. if test -f 'search.c.diff' -a "${1}" != "-c" ; then 
  1759.   echo shar: Will not clobber existing file \"'search.c.diff'\"
  1760. else
  1761. echo shar: Extracting \"'search.c.diff'\" \(786 characters\)
  1762. sed "s/^X//" >'search.c.diff' <<'END_OF_FILE'
  1763. X*** search.c.old    Tue Apr 24 11:48:40 1990
  1764. X--- search.c    Tue Mar  6 09:09:23 1990
  1765. X***************
  1766. X*** 62,68 ****
  1767. X           *py = e->center.y;
  1768. X           return(e);
  1769. X           }
  1770. X!         r = a * b * dis / sqrt((double) (1.0*b*b*dx*dx + 1.0*a*a*dy*dy));
  1771. X          if (fabs(dis - r) <= tol) {
  1772. X          *px = (int)(r*dx/dis + ((dx < 0) ? -.5 : .5)) + e->center.x;
  1773. X          *py = (int)(r*dy/dis + ((dy < 0) ? -.5 : .5)) + e->center.y;
  1774. X--- 62,71 ----
  1775. X           *py = e->center.y;
  1776. X           return(e);
  1777. X           }
  1778. X!         if(a * dy == 0 && b * dx == 0)
  1779. X!         r = 0;  /* prevent core dumps */
  1780. X!         else
  1781. X!         r = a * b * dis / sqrt((double) (1.0*b*b*dx*dx + 1.0*a*a*dy*dy));
  1782. X          if (fabs(dis - r) <= tol) {
  1783. X          *px = (int)(r*dx/dis + ((dx < 0) ? -.5 : .5)) + e->center.x;
  1784. X          *py = (int)(r*dy/dis + ((dy < 0) ? -.5 : .5)) + e->center.y;
  1785. END_OF_FILE
  1786. if test 786 -ne `wc -c <'search.c.diff'`; then
  1787.     echo shar: \"'search.c.diff'\" unpacked with wrong size!
  1788. fi
  1789. # end of 'search.c.diff'
  1790. fi
  1791. if test -f 'spline.c.diff' -a "${1}" != "-c" ; then 
  1792.   echo shar: Will not clobber existing file \"'spline.c.diff'\"
  1793. else
  1794. echo shar: Extracting \"'spline.c.diff'\" \(2402 characters\)
  1795. sed "s/^X//" >'spline.c.diff' <<'END_OF_FILE'
  1796. X*** spline.c.old    Tue Apr 24 11:48:40 1990
  1797. X--- spline.c    Mon Apr 16 11:26:05 1990
  1798. X***************
  1799. X*** 69,75 ****
  1800. X      if (x != fix_x || y != fix_y) get_intermediatepoint(x, y);
  1801. X      draw_elasticline();
  1802. X      if (num_point <= 2) {
  1803. X!         pw_vector(canvas_pixwin, first_point->x, first_point->y,
  1804. X              cur_point->x, cur_point->y, PAINT, 1, SOLID_LINE, 0.0);
  1805. X          if (num_point == 1) free((char*)cur_point);
  1806. X          free((char*)first_point);
  1807. X--- 69,75 ----
  1808. X      if (x != fix_x || y != fix_y) get_intermediatepoint(x, y);
  1809. X      draw_elasticline();
  1810. X      if (num_point <= 2) {
  1811. X!         pw_vector(canvas_win, first_point->x, first_point->y,
  1812. X              cur_point->x, cur_point->y, PAINT, 1, SOLID_LINE, 0.0);
  1813. X          if (num_point == 1) free((char*)cur_point);
  1814. X          free((char*)first_point);
  1815. X***************
  1816. X*** 82,88 ****
  1817. X      spline->style_val = cur_styleval;
  1818. X      spline->color = cur_color;
  1819. X      spline->depth = 0;
  1820. X!     spline->pen = NULL;
  1821. X      spline->area_fill = 0;
  1822. X      spline->points = first_point;
  1823. X      spline->controls = NULL; 
  1824. X--- 82,88 ----
  1825. X      spline->style_val = cur_styleval;
  1826. X      spline->color = cur_color;
  1827. X      spline->depth = 0;
  1828. X!     spline->pen = 0;
  1829. X      spline->area_fill = 0;
  1830. X      spline->points = first_point;
  1831. X      spline->controls = NULL; 
  1832. X***************
  1833. X*** 149,155 ****
  1834. X      if (spline->back_arrow) /*  backward arrow  */
  1835. X          draw_arrow((int)x2, (int)y2, (int)x1, (int)y1, 
  1836. X          spline->back_arrow, op);
  1837. X!     pw_vector(canvas_pixwin, (int)x1, (int)y1, round(cx1), 
  1838. X          round(cy1), op, spline->thickness, 
  1839. X          spline->style, spline->style_val);
  1840. X  
  1841. X--- 149,155 ----
  1842. X      if (spline->back_arrow) /*  backward arrow  */
  1843. X          draw_arrow((int)x2, (int)y2, (int)x1, (int)y1, 
  1844. X          spline->back_arrow, op);
  1845. X!     pw_vector(canvas_win, (int)x1, (int)y1, round(cx1), 
  1846. X          round(cy1), op, spline->thickness, 
  1847. X          spline->style, spline->style_val);
  1848. X  
  1849. X***************
  1850. X*** 163,169 ****
  1851. X          cx1 = cx4;  cy1 = cy4;
  1852. X          cx2 = (cx1 + x2) / 2;  cy2 = (cy1 + y2) / 2;
  1853. X          }
  1854. X!     pw_vector(canvas_pixwin, round(cx1), round(cy1), 
  1855. X          (int)x2, (int)y2, op, spline->thickness, 
  1856. X          spline->style, spline->style_val);
  1857. X      if (spline->for_arrow) /*  forward arrow  */
  1858. X--- 163,169 ----
  1859. X          cx1 = cx4;  cy1 = cy4;
  1860. X          cx2 = (cx1 + x2) / 2;  cy2 = (cy1 + y2) / 2;
  1861. X          }
  1862. X!     pw_vector(canvas_win, round(cx1), round(cy1), 
  1863. X          (int)x2, (int)y2, op, spline->thickness, 
  1864. X          spline->style, spline->style_val);
  1865. X      if (spline->for_arrow) /*  forward arrow  */
  1866. END_OF_FILE
  1867. if test 2402 -ne `wc -c <'spline.c.diff'`; then
  1868.     echo shar: \"'spline.c.diff'\" unpacked with wrong size!
  1869. fi
  1870. # end of 'spline.c.diff'
  1871. fi
  1872. if test -f 'troff_ft_codes.diff' -a "${1}" != "-c" ; then 
  1873.   echo shar: Will not clobber existing file \"'troff_ft_codes.diff'\"
  1874. else
  1875. echo shar: Extracting \"'troff_ft_codes.diff'\" \(435 characters\)
  1876. sed "s/^X//" >'troff_ft_codes.diff' <<'END_OF_FILE'
  1877. X*** troff_ft_codes.old    Tue Apr 24 11:48:41 1990
  1878. X--- troff_ft_codes    Wed Apr 11 10:09:01 1990
  1879. X***************
  1880. X*** 6,12 ****
  1881. X  I    Times-Italic
  1882. X  B    Times-Bold
  1883. X  BI    Times-BoldItalic
  1884. X! AR    AvantGarde
  1885. X  AO    AvantGarde-BookOblique
  1886. X  AB    AvantGarde-Demi
  1887. X  AX    AvantGarde-DemiOblique
  1888. X--- 6,12 ----
  1889. X  I    Times-Italic
  1890. X  B    Times-Bold
  1891. X  BI    Times-BoldItalic
  1892. X! AR    AvantGarde-Book
  1893. X  AO    AvantGarde-BookOblique
  1894. X  AB    AvantGarde-Demi
  1895. X  AX    AvantGarde-DemiOblique
  1896. END_OF_FILE
  1897. if test 435 -ne `wc -c <'troff_ft_codes.diff'`; then
  1898.     echo shar: \"'troff_ft_codes.diff'\" unpacked with wrong size!
  1899. fi
  1900. # end of 'troff_ft_codes.diff'
  1901. fi
  1902. if test -f 'turn.c.diff' -a "${1}" != "-c" ; then 
  1903.   echo shar: Will not clobber existing file \"'turn.c.diff'\"
  1904. else
  1905. echo shar: Extracting \"'turn.c.diff'\" \(983 characters\)
  1906. sed "s/^X//" >'turn.c.diff' <<'END_OF_FILE'
  1907. X*** turn.c.old    Tue Apr 24 11:48:43 1990
  1908. X--- turn.c    Wed Apr 11 11:11:18 1990
  1909. X***************
  1910. X*** 96,103 ****
  1911. X      s->next = NULL;
  1912. X  
  1913. X      l->for_arrow = l->back_arrow = NULL;
  1914. X!     /* l->area_fill = 0; */
  1915. X!     l->pen = NULL;
  1916. X      l->points = NULL;
  1917. X  
  1918. X      if (-1 == create_control_list(s)) {
  1919. X--- 96,102 ----
  1920. X      s->next = NULL;
  1921. X  
  1922. X      l->for_arrow = l->back_arrow = NULL;
  1923. X!     l->pen = 0;
  1924. X      l->points = NULL;
  1925. X  
  1926. X      if (-1 == create_control_list(s)) {
  1927. X***************
  1928. X*** 141,146 ****
  1929. X--- 140,146 ----
  1930. X      l->depth = s->depth;
  1931. X      l->style_val = s->style_val;
  1932. X      l->pen = s->pen;
  1933. X+     l->radius = 0;
  1934. X      l->area_fill = s->area_fill;
  1935. X      l->for_arrow = s->for_arrow;
  1936. X      l->back_arrow = s->back_arrow;
  1937. X***************
  1938. X*** 149,155 ****
  1939. X  
  1940. X      s->for_arrow = s->back_arrow = NULL;
  1941. X      s->area_fill = 0;
  1942. X!     s->pen = NULL;
  1943. X      s->points = NULL;
  1944. X  
  1945. X      draw_line(l, PAINT);
  1946. X--- 149,155 ----
  1947. X  
  1948. X      s->for_arrow = s->back_arrow = NULL;
  1949. X      s->area_fill = 0;
  1950. X!     s->pen = 0;
  1951. X      s->points = NULL;
  1952. X  
  1953. X      draw_line(l, PAINT);
  1954. END_OF_FILE
  1955. if test 983 -ne `wc -c <'turn.c.diff'`; then
  1956.     echo shar: \"'turn.c.diff'\" unpacked with wrong size!
  1957. fi
  1958. # end of 'turn.c.diff'
  1959. fi
  1960. if test -f 'undo.c.diff' -a "${1}" != "-c" ; then 
  1961.   echo shar: Will not clobber existing file \"'undo.c.diff'\"
  1962. else
  1963. echo shar: Extracting \"'undo.c.diff'\" \(1361 characters\)
  1964. sed "s/^X//" >'undo.c.diff' <<'END_OF_FILE'
  1965. X*** undo.c.old    Tue Apr 24 11:48:43 1990
  1966. X--- undo.c    Tue Apr 17 16:35:19 1990
  1967. X***************
  1968. X*** 68,73 ****
  1969. X--- 68,75 ----
  1970. X          case F_DELETE_POINT :
  1971. X          undo_deletepoint();
  1972. X          break;
  1973. X+         case F_CHANGE :
  1974. X+         undo_change();
  1975. X          default :
  1976. X          return;
  1977. X          }    
  1978. X***************
  1979. X*** 104,109 ****
  1980. X--- 106,114 ----
  1981. X  
  1982. X  undo_glue()
  1983. X  {
  1984. X+     put_msg("UNDO for GLUE not working");
  1985. X+     return;
  1986. X+ 
  1987. X      if (compoundbox_shown)
  1988. X          draw_compoundbox(saved_objects.compounds, INV_PAINT);
  1989. X      delete_compound(&objects.compounds, saved_objects.compounds);
  1990. X***************
  1991. X*** 110,115 ****
  1992. X--- 115,142 ----
  1993. X      append_objects(&objects, saved_objects.compounds, &object_tails);
  1994. X      last_action = F_BREAK;
  1995. X      }
  1996. X+ 
  1997. X+ undo_change()
  1998. X+ {
  1999. X+     switch (last_object) {
  2000. X+         case O_POLYLINE :
  2001. X+         change_line(saved_objects.lines->next,saved_objects.lines);
  2002. X+         break;
  2003. X+         case O_ELLIPSE:
  2004. X+         change_ellipse(saved_objects.ellipses->next,saved_objects.ellipses);
  2005. X+         break;
  2006. X+         case O_TEXT :
  2007. X+         change_text(saved_objects.texts->next,saved_objects.texts);
  2008. X+         break;
  2009. X+         case O_SPLINE :
  2010. X+         change_spline(saved_objects.splines->next,saved_objects.splines);
  2011. X+         break;
  2012. X+         case O_ARC :
  2013. X+         change_arc(saved_objects.arcs->next,saved_objects.arcs);
  2014. X+         break;
  2015. X+     }
  2016. X+     last_action = F_CHANGE;
  2017. X+ }
  2018. X  
  2019. X  /* 
  2020. X  When a single object is created, it is inserted as the first object in
  2021. END_OF_FILE
  2022. if test 1361 -ne `wc -c <'undo.c.diff'`; then
  2023.     echo shar: \"'undo.c.diff'\" unpacked with wrong size!
  2024. fi
  2025. # end of 'undo.c.diff'
  2026. fi
  2027. if test -f 'version.h.diff' -a "${1}" != "-c" ; then 
  2028.   echo shar: Will not clobber existing file \"'version.h.diff'\"
  2029. else
  2030. echo shar: Extracting \"'version.h.diff'\" \(477 characters\)
  2031. sed "s/^X//" >'version.h.diff' <<'END_OF_FILE'
  2032. X*** version.h.old    Tue Apr 24 11:48:44 1990
  2033. X--- version.h    Wed Apr 11 11:19:09 1990
  2034. X***************
  2035. X*** 9,15 ****
  2036. X  
  2037. X  #define            FIG_VERSION        "2.0"
  2038. X  #ifndef TFX
  2039. X! #define            PROTOCOL_VERSION    "1.4X"    /* file format */
  2040. X  #else
  2041. X! #define            PROTOCOL_VERSION    "1.4-TFX" /* file format */
  2042. X  #endif
  2043. X--- 9,15 ----
  2044. X  
  2045. X  #define            FIG_VERSION        "2.0"
  2046. X  #ifndef TFX
  2047. X! #define            PROTOCOL_VERSION    "2.0"    /* file format */
  2048. X  #else
  2049. X! #define            PROTOCOL_VERSION    "2.0-TFX" /* file format */
  2050. X  #endif
  2051. END_OF_FILE
  2052. if test 477 -ne `wc -c <'version.h.diff'`; then
  2053.     echo shar: \"'version.h.diff'\" unpacked with wrong size!
  2054. fi
  2055. # end of 'version.h.diff'
  2056. fi
  2057. if test -f 'xtra.h.diff' -a "${1}" != "-c" ; then 
  2058.   echo shar: Will not clobber existing file \"'xtra.h.diff'\"
  2059. else
  2060. echo shar: Extracting \"'xtra.h.diff'\" \(334 characters\)
  2061. sed "s/^X//" >'xtra.h.diff' <<'END_OF_FILE'
  2062. X*** xtra.h.old    Tue Apr 24 11:48:48 1990
  2063. X--- xtra.h    Tue Apr 10 16:32:56 1990
  2064. X***************
  2065. X*** 16,25 ****
  2066. X      XDrawString(tool_d, (w), (font==bold_font)?bold_gc: gc, (x), (y), \
  2067. X          (string), strlen(string))
  2068. X  
  2069. X- #define    pw_batch_on(w)
  2070. X- 
  2071. X- #define    pw_batch_off(w)
  2072. X- 
  2073. X  #define    CTRL_H    8
  2074. X  #define    NL    10
  2075. X  #define    CR    13
  2076. X--- 16,21 ----
  2077. END_OF_FILE
  2078. if test 334 -ne `wc -c <'xtra.h.diff'`; then
  2079.     echo shar: \"'xtra.h.diff'\" unpacked with wrong size!
  2080. fi
  2081. # end of 'xtra.h.diff'
  2082. fi
  2083. echo shar: End of archive 1 \(of 6\).
  2084. cp /dev/null ark1isdone
  2085. MISSING=""
  2086. for I in 1 2 3 4 5 6 ; do
  2087.     if test ! -f ark${I}isdone ; then
  2088.     MISSING="${MISSING} ${I}"
  2089.     fi
  2090. done
  2091. if test "${MISSING}" = "" ; then
  2092.     echo You have unpacked all 6 archives.
  2093.     rm -f ark[1-9]isdone
  2094. else
  2095.     echo You still need to unpack the following archives:
  2096.     echo "        " ${MISSING}
  2097. fi
  2098. ##  End of shell archive.
  2099. exit 0
  2100.  
  2101. dan
  2102. -----------------------------------------------------------
  2103.             O'Reilly && Associates
  2104.         argv@sun.com / argv@ora.com
  2105.        632 Petaluma Ave, Sebastopol, CA 95472 
  2106.      800-338-NUTS, in CA: 800-533-NUTS, FAX 707-829-0104
  2107.     Opinions expressed reflect those of the author only.
  2108.